<?php
/**
 * Created by PhpStorm.
 * User: 枪不抬何安然
 * Date: 2021/12/5
 * Time: 15:11
 */
function doUploadAction(){
    if(empty($_FILES['up_file']['name'])){
        echo '头像为空';
        echo '<br />';
        echo "<a href='index.php'>重新输入</a>";
        die;
    }else{
        move_uploaded_file($_FILES['up_file']['tmp_name'],'Public/'.$_FILES['up_file']['name']);
        $url = 'img/'.$_FILES['up_file']['name'];
        echo '头像：<img src='.$url.' width="200px" height="180px">';
        echo '<br />';
    }
}

doUploadAction();


echo  '姓名：'.$_POST['Name'];
echo  '<br/>';
echo  '性别：'.$_POST['sex'];
echo  '<br/>';
echo  '公司：'.$_POST['company'];
echo  '<br/>';
echo  '职业：'.$_POST['post'];
echo  '<br/>';
echo  '微信：'.$_POST['wechat'];
echo  '<br/>';
echo  'QQ：'.$_POST['QQ'];
echo  '<br/>';
echo  '微博：'.$_POST['microblog'];
echo  '<br/>';
echo  '地址：'.$_POST['Province'].'省';
echo  ' ';
echo  $_POST['City'];
echo  '<br/>';
echo  '自我介绍：'.$_POST['self'];